/***************************************************************************
 *   This is a part of the NextCAD Web APP.                                *
 *   Copyright (C) AMCAX, All rights reserved.                             *
 ***************************************************************************/

import { CurvedBaseCommand } from '@app-cad/types';
import i18n from 'i18next';
import { CmdFace } from '../common/CmdFace';

export const cmdDeleteFace: CurvedBaseCommand = {
  id: 'CmdDeleteFace',
  label: 'command.delete-face',
  icon: 'commands/feature/delete-face',
  create: (label, onClose, props) => (
    <CmdFace
      title={i18n.t(label)}
      onClose={onClose}
      props={props}
      cmdID='cmd-delete-face'
      cmdName='CreateRemoveFace'
      facesPlaceholder='请输入被删除的面'
    />
  ),
};
